package nl.scalasim

trait LoggingActor { self: ScalasimActor =>

  def debug(msg: String, args: Any*) {
    println("[DEBUG] [%s] %s".format(name, msg.format(args: _*)))
  }

  def info(msg: String, args: Any*) {
    println("[INFO]  [%s] %s".format(name, msg.format(args: _*)))
  }

  def warn(msg: String, args: Any*) {
    println("[WARN]  [%s] %s".format(name, msg.format(args: _*)))
  }

  def error(msg: String, args: Any*) {
    println("[ERROR] [%s] %s".format(name, msg.format(args: _*)))
  }

}